using System;
using System.Collections.Generic;
using System.Text;

namespace Baraja
{
    class Baraja
    {
        private Carta[] cartas;
        private int[] barajeo;

        public Baraja() {
            cartas = new Carta[52];
            for (int i = 0; i < 52; i++) {
                cartas[i] = new Carta();
            }
            MostrarCartas();
        }
        public void MostrarCartas() {
            for (int i = 0; i < 52; i++) {
                Console.WriteLine(cartas[i].GetNumero()+" de "+cartas[i].GetPalo());
            }
        }
        public void barajar() {
            Random rdm = new Random(DateTime.Now.Millisecond);
            for (int i = 0; i < 52; i++) {
                int aleatorio = rdm.Next(0,52);
                Carta pivote = cartas[i];
                cartas[i] = cartas[aleatorio];
                cartas[aleatorio] = pivote;
            }
        }
    }
}
